﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200124D RID: 4685
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StoryLineInfoScNotify : IMessage<StoryLineInfoScNotify>, IMessage, IEquatable<StoryLineInfoScNotify>, IDeepCloneable<StoryLineInfoScNotify>, IBufferMessage
	{
		// Token: 0x17003B68 RID: 15208
		// (get) Token: 0x0600D21E RID: 53790 RVA: 0x0023626F File Offset: 0x0023446F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StoryLineInfoScNotify> Parser
		{
			get
			{
				return StoryLineInfoScNotify._parser;
			}
		}

		// Token: 0x17003B69 RID: 15209
		// (get) Token: 0x0600D21F RID: 53791 RVA: 0x00236276 File Offset: 0x00234476
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StoryLineInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B6A RID: 15210
		// (get) Token: 0x0600D220 RID: 53792 RVA: 0x00236288 File Offset: 0x00234488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StoryLineInfoScNotify.Descriptor;
			}
		}

		// Token: 0x0600D221 RID: 53793 RVA: 0x0023628F File Offset: 0x0023448F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StoryLineInfoScNotify()
		{
		}

		// Token: 0x0600D222 RID: 53794 RVA: 0x002362B0 File Offset: 0x002344B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StoryLineInfoScNotify(StoryLineInfoScNotify other) : this()
		{
			this.unfinishedStoryLineIdList_ = other.unfinishedStoryLineIdList_.Clone();
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this.curStoryLineId_ = other.curStoryLineId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D223 RID: 53795 RVA: 0x00236302 File Offset: 0x00234502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StoryLineInfoScNotify Clone()
		{
			return new StoryLineInfoScNotify(this);
		}

		// Token: 0x17003B6B RID: 15211
		// (get) Token: 0x0600D224 RID: 53796 RVA: 0x0023630A File Offset: 0x0023450A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnfinishedStoryLineIdList
		{
			get
			{
				return this.unfinishedStoryLineIdList_;
			}
		}

		// Token: 0x17003B6C RID: 15212
		// (get) Token: 0x0600D225 RID: 53797 RVA: 0x00236312 File Offset: 0x00234512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x17003B6D RID: 15213
		// (get) Token: 0x0600D226 RID: 53798 RVA: 0x0023631A File Offset: 0x0023451A
		// (set) Token: 0x0600D227 RID: 53799 RVA: 0x00236322 File Offset: 0x00234522
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurStoryLineId
		{
			get
			{
				return this.curStoryLineId_;
			}
			set
			{
				this.curStoryLineId_ = value;
			}
		}

		// Token: 0x0600D228 RID: 53800 RVA: 0x0023632B File Offset: 0x0023452B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StoryLineInfoScNotify);
		}

		// Token: 0x0600D229 RID: 53801 RVA: 0x0023633C File Offset: 0x0023453C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StoryLineInfoScNotify other)
		{
			return other != null && (other == this || (this.unfinishedStoryLineIdList_.Equals(other.unfinishedStoryLineIdList_) && this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && this.CurStoryLineId == other.CurStoryLineId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D22A RID: 53802 RVA: 0x002363A0 File Offset: 0x002345A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.unfinishedStoryLineIdList_.GetHashCode();
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this.CurStoryLineId != 0U)
			{
				num ^= this.CurStoryLineId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D22B RID: 53803 RVA: 0x002363FB File Offset: 0x002345FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D22C RID: 53804 RVA: 0x00236403 File Offset: 0x00234603
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D22D RID: 53805 RVA: 0x0023640C File Offset: 0x0023460C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurStoryLineId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.CurStoryLineId);
			}
			this.trialAvatarIdList_.WriteTo(ref output, StoryLineInfoScNotify._repeated_trialAvatarIdList_codec);
			this.unfinishedStoryLineIdList_.WriteTo(ref output, StoryLineInfoScNotify._repeated_unfinishedStoryLineIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D22E RID: 53806 RVA: 0x0023646C File Offset: 0x0023466C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.unfinishedStoryLineIdList_.CalculateSize(StoryLineInfoScNotify._repeated_unfinishedStoryLineIdList_codec);
			num += this.trialAvatarIdList_.CalculateSize(StoryLineInfoScNotify._repeated_trialAvatarIdList_codec);
			if (this.CurStoryLineId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurStoryLineId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D22F RID: 53807 RVA: 0x002364D0 File Offset: 0x002346D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StoryLineInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.unfinishedStoryLineIdList_.Add(other.unfinishedStoryLineIdList_);
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			if (other.CurStoryLineId != 0U)
			{
				this.CurStoryLineId = other.CurStoryLineId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D230 RID: 53808 RVA: 0x0023652E File Offset: 0x0023472E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D231 RID: 53809 RVA: 0x00236538 File Offset: 0x00234738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 8U)
					{
						this.CurStoryLineId = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						goto IL_43;
					}
				}
				else
				{
					if (num == 34U)
					{
						goto IL_43;
					}
					if (num == 96U || num == 98U)
					{
						this.unfinishedStoryLineIdList_.AddEntriesFrom(ref input, StoryLineInfoScNotify._repeated_unfinishedStoryLineIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_43:
				this.trialAvatarIdList_.AddEntriesFrom(ref input, StoryLineInfoScNotify._repeated_trialAvatarIdList_codec);
			}
		}

		// Token: 0x04005436 RID: 21558
		private static readonly MessageParser<StoryLineInfoScNotify> _parser = new MessageParser<StoryLineInfoScNotify>(() => new StoryLineInfoScNotify());

		// Token: 0x04005437 RID: 21559
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005438 RID: 21560
		public const int UnfinishedStoryLineIdListFieldNumber = 12;

		// Token: 0x04005439 RID: 21561
		private static readonly FieldCodec<uint> _repeated_unfinishedStoryLineIdList_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x0400543A RID: 21562
		private readonly RepeatedField<uint> unfinishedStoryLineIdList_ = new RepeatedField<uint>();

		// Token: 0x0400543B RID: 21563
		public const int TrialAvatarIdListFieldNumber = 4;

		// Token: 0x0400543C RID: 21564
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x0400543D RID: 21565
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x0400543E RID: 21566
		public const int CurStoryLineIdFieldNumber = 1;

		// Token: 0x0400543F RID: 21567
		private uint curStoryLineId_;
	}
}
